home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / doc / implementation / new-amiint.doc < prev    next >
Encoding:
Text File  |  1992-08-27  |  2.5 KB  |  92 lines

  1. .\" FILE
  2. .\"    new-amiint.doc
  3. .\"
  4. .\" DESCRIPTION
  5. .\"    Description of command language for ~postgres/bin/amiint
  6. .\"
  7. .\" RCS ID
  8. .\"    $Header: /private/postgres/doc/implementation/RCS/new-amiint.doc,v 1.1 1990/07/30 13:50:34 kemnitz Exp $
  9. .\"
  10. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  11.  
  12. The following are valid statements/queries in amiint.
  13. The single character versions exist to maintain compatibility
  14. with old amiint scripts but will eventually cease to exist (maybe)
  15.  
  16. Those commands whose names have been changed have their old
  17. syntax listed for reference.
  18.  
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20.  
  21.  
  22. open <relation>
  23. o <relation>
  24.     open the named relation
  25.  
  26. open <relation> (<field1>=<type1>,... )
  27.     open (and create the file ) for the  relation named <relation>
  28.     with the field/type  given in the parentheses
  29.  
  30. close <relation>
  31. c <relation>
  32.     close the named relation
  33.  
  34. display relation
  35.     displays the contents of pg_relation
  36.  
  37. create <relation> ( <field>=<type> , ...)
  38.     create the relation with the types defined
  39.     formerly "t <ntypes> <field1> <type1> ... <fieldn> <typen>"
  40.  
  41. destroy <relation>
  42.     destroy the named relation
  43.     formerly ".D <relation>"
  44.  
  45. rename relation <relation1> as <relation2>
  46.     rename relation 1 as relation2
  47.     formerly ".RR <relation1> <relation2>
  48.  
  49. rename attribute <attr1> as <attr2> in <relation>
  50.     rename attr1 to become attr2 in relation named <relation>
  51.     formerly ".RA <relation> <attr1> <attr2>
  52.  
  53. add (<field1>=<type1>, ... <fieldn>=<typen>) to <relation>
  54.     formerly ".A <relation> <field1> <type1> ... <fieldn> <typen>"
  55.  
  56. define macro <macroname> = <literal-value>
  57.     define a macro with the literal <macroname>
  58.     as the value <literal-value>     
  59.  
  60. insert oid = <value> (<value1>, ... <valuen>)
  61.     insert a tuple with oid of <value>
  62.  
  63. insert (<value1>, ... <valuen>)
  64.     insert a tuple with an arbitrary oid
  65.  
  66. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  67.  
  68. Goodies that are yet to come (ie currently unimplemented features):
  69.  
  70. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  71.  
  72. insert field1=value1,fieldn=valuen (<....>)
  73. insert lock = <value> (<value1>, ...<valuen>)
  74.  
  75. define function foo as ( ...)
  76.  
  77.     open pg_function
  78.     insert (foobar,6,3,t,t,t,<filename>)
  79.  
  80. define macro <macroname> from file <filename>
  81. define macro <macroname> <function-name>(parameters)
  82.  
  83. define macro abc "xyz abc def xyz \n
  84.         dsafasdfasdf 
  85.         ...    "
  86.  
  87. define lisp-function "......."
  88. define c-function "......"
  89. define lisp-function from file " ..."
  90.  
  91. define macro <macroname> = compile-file ("...")
  92.